﻿using System;
using System.Xml.Linq;
using System.Collections.Generic;
using HigLabo.Net.Extensions;


namespace HigLabo.Net.Twitter
{
    /// <summary>
    /// 
    /// </summary>
    public class Query : ResponseObject
    {
        /// <summary>
        /// 
        /// </summary>
        public Params Params { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public String Type { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public String Url { set; get; }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="jsonText"></param>
        public Query(String jsonText)
        {
            this.SetProperty(jsonText);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="jsonText"></param>
        public override void SetProperty(string jsonText)
        {
            var d = this.SetData(jsonText);

            this.Params = new Params(d.ToString("params"));
            this.Type = d.ToString("type");
            this.Url = d.ToString("url");

        }
    }
}
